package org.yenn.pattern.adapter.impl;

import lombok.AllArgsConstructor;
import org.yenn.pattern.adapter.GBTwoPlug;
import org.yenn.pattern.adapter.ThreePlugIf;

/*
 * 二相转三相的插座适配器
 */
@AllArgsConstructor
public class TwoPlugAdapter implements ThreePlugIf {

	private GBTwoPlug plug;

	@Override
	public void powerWithThree() {
		System.out.print("通过转化-----");
		plug.powerWithTwo();

	}

}
